package com.h3c.nem.mapstruct;

import com.h3c.nem.dto.TbApprovalRecordDTO;
import com.h3c.nem.dto.TbOfferSendRecordDTO;
import com.h3c.nem.entity.TbApprovalRecord;
import com.h3c.nem.entity.TbOfferSendRecord;
import com.h3c.nem.vo.TbApprovalRecordVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface TbApprovalRecordMapstruct {

    TbApprovalRecordMapstruct INSTANCE = Mappers.getMapper(TbApprovalRecordMapstruct.class);

    /**
     * entity转dto
     * @param worker
     * @return
     */
    TbApprovalRecordDTO entityToDto(TbApprovalRecord worker);

    /**
     * entity转dto
     * @param worker
     * @return
     */
    List<TbApprovalRecordDTO> entityToDto(List<TbApprovalRecord> worker);

    /**
     * 实体类列表转VO列表
     * @param recordList
     * @return
     */
    List<TbApprovalRecordVO> entityListToVoList(List<TbApprovalRecord> recordList);
}
